<template>
  <div class="main">
    <div v-for="(item,index) in navList" :key="index" @click="$router.push(item.path)">{{ item.name }}</div>
  </div>
</template>
<script>
export default{
  name:'home',
  data(){
    return{
      count: 20,
      navList:[
        {
          path:'/baiDuMapGL',
          name:'原生百度地图（GL）版'
        },
        {
          path:'/vue-baidu-map',
          name:'vue-baidu-map 插件'
        },
        {
          path:'/mapV',
          name:'mapV'
        },
        {
          path:'/maskLayer',
          name:'遮罩层'
        },
        {
          path:'/textarea',
          name:'文本域'
        },
        {
          path:'/tabbar-home',
          name:'tabbar'
        },
        {
          path:'/dynamicRouting',
          name:'路由相关'
        },
        {
          path:'/promise',
          name:'Promise'
        },
        {
          path:'/VuexIndex',
          name:'Vuex相关'
        },
        {
          path:'/axios',
          name:'封装axios'
        },
        {
          path:'/echarts',
          name:'Echarts'
        },
        {
          path:'/popover',
          name:'提示框'
        },
        {
          path:'/stqxzbScroll',
          name:'原生的提示框与轮播  '
        },
        {
          path:'/zjtx',
          name:'vue的组件通讯'
        },
        {
          path:'/zjfz',
          name:'组件封装'
        },
        {
          path:'/smoothness',
          name:'平滑滚动锚点效果'
        },
      ]
    }
  },
  methods: {
    load () {
      this.count += 2
    }
  }
}
</script>
<style lang="scss" scoped>
@function companyW($num) {
  @return ($num * 100)/1920;
}
@function companyH($num) {
  @return ($num * 100)/1080;
}
.main{
  div{
    margin: 10px;
    background-color: azure;
    line-height: 48px;
    text-align: center;
    font-family: PingFang SC-常规体, PingFang SC;
    font-weight: bold;
    cursor: pointer;
  }
}
</style>
